<template>
	<view class="container">
		<block v-for="(item,index) in dataList" :key="index">
			<uni-card :is-shadow="true" :title="'车牌:'+item.plateNumber" >
				<block v-if="item.record!=null">
					<view>
						进场时间:{{item.record.entranceTime}}
					</view>
					<view>
						进场通道:{{item.record.entranceGateName}}
					</view>
					<block v-if="item.record.isEit==1">
						<view>
							出场时间:{{item.record.exitTime}}
						</view>
						<view>
							出场通道:{{item.record.exitGateName}}
						</view>
					</block>
				</block>
				<view style="margin-top: 10rpx;">
					付款时间:
					<text style="font-size: 30rpx;font-weight: 600;">
						{{item.createTime}}
					</text>
				</view>
				<view style="margin-top: 10rpx;">
					扣款金额:
					<text style="color: #EF5063;font-size: 32rpx;font-weight: 700;">
						￥{{item.amount}}
					</text>
				</view>
				
			</uni-card>
		</block>
		<empty v-if="dataList.length==0"></empty>
	</view>
</template>

<script>
	import {billList} from "@/api/welfare.js";
	export default {
		data() {
			return {
				showLicenseDialog: false, //是否显示添加车牌的dialog
				car:'',
				avatar:"",
				dataList:[]
			}
		},
		onLoad() {
			console.log("yangzl");
			
		},
		onShow(){
			this.getList()
		},
		methods: {
			getList(){
				billList().then((res)=>{
					if(res.data.code==0){
						this.dataList=res.data.data
					}
					console.log("res",res);
				})
			},
			
			
		}
	}
</script>

<style scoped lang="less">
	.container{
	  width:750rpx;
	  
	}
	.add-btn{
		width: 702rpx;
		height: 80rpx;
		background: #40C7B8;
		border-radius: 156rpx;
		opacity: 1;
		margin-left:24rpx;
		color:white;
		
	}
	.car_status{
		position: absolute;
		top:0;
		right:0px;
		padding-left:20rpx;
		padding-right: 20rpx;
		height: 48rpx;
		background: #EF5063;
		border-radius: 20rpx 0rpx 20rpx 0rpx;
		display: flex;
		flex-direction: row;
		align-items: center;
	}
</style>